package com.neu.flashmall.product.feign;

import com.neu.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "third-party")
public interface ThirdPartyFeignService {


    @DeleteMapping("/oss/deleteBrandIcon")
    public Result deleteBrandIcon(@RequestParam(value = "brandId") String brandId);

    @DeleteMapping(value = "/oss/deleteCategoryIcon")
    public Result deleteCategoryIcon(@RequestParam(value = "categoryId") String categoryId);

    @DeleteMapping("/oss/deleteSpuOneImage")
    public Result deleteSpuOneImage(@RequestParam("url") String url);

    @DeleteMapping("/oss/deleteSpuAllImage")
    public Result deleteSpuAllImage(@RequestParam(value = "spuId") String spuId);

    @DeleteMapping("/oss/deleteSkuAllImage")
    public Result deleteSkuAllImage(@RequestParam(value = "skuId") String skuId);

    @DeleteMapping("/oss/deleteSkuOneImage")
    public Result deleteSkuOneImage(@RequestParam("url") String url);
}
